
public class Demo2 {

	public static void main(String[] args) {
		int[] arr = {11,22,33,44,55};
		System.out.println(arr(arr));
	}
	public static int arr(int[] arr) {
		int max = arr[0];
		for (int i = 0; i < arr.length; i++) {
			if (max<arr[i]) {
				max = arr[i];
			}
		}
		return max;
	}
}
